﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Tunnel.Devices.DeviceEntity
{
    public partial class Smoke : DeviceBase
    {

        public override string StatusDescription
        {
            get
            {
                return base.StatusDescription;
            }

            set
            {
                switch (value)
                {
                    case "正常": this.Image = ResPic.烟感正常; break;
                    case "火警": this.Image = ResPic.烟感报警; break;
                    case "故障": this.Image = ResPic.烟感故障; break;
                }
                base.StatusDescription = value;
            }
        }

        public Smoke()
        {
            InitializeComponent();
            this.Size = new Size(32, 32);
        }

        protected override void OnPaint(PaintEventArgs pe)
        {
            base.OnPaint(pe);
        }

        public override void SendCommand(CommandType commandType)
        {
            throw new NotImplementedException();
        }
    }
}
